#ifndef CLASS_TIMER_H
#define CLASS_TIMER_H

/***
 * class-timer.h
 *
 * Header file for the timer code
 *
 * @author Leigh Ashton <gravious@gmail.com>
 * @since  20 September 2008
 **/

#include "SDL/SDL.h"
#include <iostream>

using namespace std;

class cTimer{

	public:

		// Public Member Fields

			float fpsTarget;	// Intended framerate
			float msPerFrame;	// Miliseconds per frame

			Uint32 currentTime;
			Uint32 targetTime;

		// Public Member Functions

			cTimer();
			bool update();
};
	
#endif // CLASS_TIMER_H